Skip to content

feat: add automated testing and migrate CI/CD to Docker-based workflows#193

Merged
xmarcos merged 9 commits intomainfrom
feature/ci-testing
Mar 3, 2026
Merged

feat: add automated testing and migrate CI/CD to Docker-based workflows#193
xmarcos merged 9 commits intomainfrom
feature/ci-testing

Conversation

@xmarcos
Copy link
Owner

@xmarcos xmarcos commented Mar 2, 2026

Description

This PR introduces a comprehensive testing suite and fully containerizes the development and CI/CD workflows.

Changes

🧪 Testing & Refactoring

  • Test Suite: Integrated vitest and added 10+ test cases covering JSON, XML, Plain Text, and various edge cases.
  • Architecture: Refactored src/index.ts to export the router and created src/worker.ts as the entry point to enable unit testing.
  • CI/CD Migration: Migrated GitHub Actions (test.yml, deploy.yml) to run inside the Docker environment, ensuring parity between local dev and production pipelines.

🐳 Docker & Dev Experience

  • Dockerized CI/CD: Added git to the Dockerfile to support semantic-release and other tools within the container.
  • Docker-First Workflow: Enabled package-lock.json syncing between host and container.
  • Dockerfile Refactor: Simplified dependency management by removing global wrangler installation in favor of npx.
  • Local Dev: Added a npm run dev script and updated README.md with current API examples (v2.x).

⚙️ Maintenance & Ops

  • Version Locking: Locked wrangler to 4.69.0 across the entire stack.
  • Environment Support: Added CLOUDFLARE_API_TOKEN support to docker-compose.yml for container-based deployments.
  • Workflow Optimizations: Added concurrency controls to GitHub Actions and enabled Action tracking in dependabot.yml.
  • Cleanup: Standardized .gitignore and .dockerignore patterns.

@xmarcos xmarcos changed the title feat: add automated tests and ci pipeline feat: add automated testing and optimize Docker-first workflow Mar 3, 2026
@xmarcos xmarcos changed the title feat: add automated testing and optimize Docker-first workflow feat: add automated testing and migrate CI/CD to Docker-based workflows Mar 3, 2026
@xmarcos xmarcos merged commit 445b171 into main Mar 3, 2026
1 check passed
@xmarcos xmarcos deleted the feature/ci-testing branch March 3, 2026 01:57
@github-actions
Copy link

github-actions bot commented Mar 3, 2026

🎉 This PR is included in version 2.2.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant